import requests

cookies = {
    'Hm_lvt_553ce4fa7b2bd3ea6d85c1fb6b901c6c': '1740329979',
    'HMACCOUNT': 'A93D1D4ED57DF201',
    'zh_choose': 's',
    'Hm_lpvt_553ce4fa7b2bd3ea6d85c1fb6b901c6c': '1740330040',
}

headers = {
    'Accept': 'application/json, text/plain, */*',
    'Accept-Language': 'zh-CN,zh;q=0.9',
    'Cache-Control': 'no-cache',
    'Connection': 'keep-alive',
    # 'Cookie': 'Hm_lvt_553ce4fa7b2bd3ea6d85c1fb6b901c6c=1740329979; HMACCOUNT=A93D1D4ED57DF201; zh_choose=s; Hm_lpvt_553ce4fa7b2bd3ea6d85c1fb6b901c6c=1740330040',
    'Pragma': 'no-cache',
    'Referer': 'https://www.swhysc.com/swhysc/publicChannel?channel=00010002000100080002',
    'Sec-Fetch-Dest': 'empty',
    'Sec-Fetch-Mode': 'cors',
    'Sec-Fetch-Site': 'same-origin',
    'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.6261.95 Safari/537.36',
    'Xdemeter': '{"DeviceType":"PW"}',
    'sec-ch-ua': '"Chromium";v="122", "Not(A:Brand";v="24", "Google Chrome";v="122"',
    'sec-ch-ua-mobile': '?0',
    'sec-ch-ua-platform': '"Windows"',
}

params = {
    'pageNum': '2',
    'pageSize': '10',
    'staffSort': '0',
}

response = requests.get(
    'https://www.swhysc.com/swhy/service/wscms/v1/notice/bondinvestment',
    params=params,
    cookies=cookies,
    headers=headers,
)

print(response.text)